package cn.virens.web.components.converter;

import java.util.Date;

import org.springframework.core.convert.converter.Converter;

import cn.hutool.core.date.DateUtil;

public class DateConverter implements Converter<String, Date> {

	@Override
	public Date convert(String source) {
		try {
			return DateUtil.parse(source);
		} catch (Exception e) {
		}

		return null;
	}
}
